/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}
html,
body {
  height: 100%;
}
body {
  background-color: #f5f5f5;
}
#app {
  height: 100%;
}
.container {
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 15px;
}

/* 顶部导航栏 */
.header {
  background-color: #4584fc;
  color: white;
  height: 60px;
  line-height: 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.top-menu {
  display: flex;
  list-style: none;
}

.top-menu li {
  margin-left: 20px;
  position: relative;
}

.top-menu a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.top-menu a:hover,
.top-menu a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  background-color: #fff;
}

/* 侧边导航 */
.main-content {
  /* display: flex; */
  margin-top: 20px;
  height: calc(100% - 100px);
  overflow: auto;
}

.sidebar {
  width: 200px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-right: 20px;
}

.side-menu {
  list-style: none;
}

.side-menu li {
  margin-bottom: 10px;
}

.side-menu a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.side-menu a:hover,
.side-menu a.active {
  background-color: #e3f2fd;
  color: #1e88e5;
}

/* 内容区域 */
.content {
  flex: 1;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  height: 100%;
  overflow: auto;
}

.page-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* 订单列表 */
.order-list {
  width: 100%;
  border-collapse: collapse;
}

.order-list th,
.order-list td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.order-list th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.order-list tr:hover {
  background-color: #f5f5f5;
}

.btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #1e88e5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #1976d2;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 12px;
  margin-left: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 150px;
  z-index: 1000;
  margin-top: 5px;
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background-color: #f5f5f5;
  color: #1e88e5;
}

.module-title {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  /* color: #444c5a; */
  color: #4584fc;
}

.ml2 {
  margin-right: 12px;
}
.mt-10 {
  margin-top: 10px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-10 {
  margin-bottom: 10px;
}
.pl-20 {
  padding-left: 20px;
}
.no-margin {
  margin: 0;
}
.no-border {
  border: 0;
}

/*
 * 滚动条样式
 */
*::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 6px;
  height: 8px;
  /*高宽分别对应横竖滚动条的尺寸*/
  background: rgba(255, 255, 255, 0);
}

*::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 3px;
  background: #cbcdd1;
}

*::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: rgba(255, 255, 255, 0);
}

.el-pagination {
  text-align: right;
  margin-top: 40px;
  .active {
    background-color: #4584fc !important;
  }
}
